import request from '@/utils/request'

// 查询每日任务对应面试题练习列表
export function queryDailyInterviewList(date,classesId) {
  return request({
    url: '/teaching/daily_tasks/interview',
    method: 'get',
    params: {
      date:date,
      classesId:classesId
    }
  })
}
// 查询每日任务列表
export function listDaily_tasks(query) {
  return request({
    url: '/teaching/daily_tasks/list',
    method: 'get',
    params: query
  })
}

// 查询每日任务详细
export function getDaily_tasks(id) {
  return request({
    url: '/teaching/daily_tasks/' + id,
    method: 'get'
  })
}

// 新增每日任务
export function addDaily_tasks(data) {
  return request({
    url: '/teaching/daily_tasks',
    method: 'post',
    data: data
  })
}

// 修改每日任务
export function updateDaily_tasks(data) {
  return request({
    url: '/teaching/daily_tasks',
    method: 'put',
    data: data
  })
}

// 删除每日任务
export function delDaily_tasks(id) {
  return request({
    url: '/teaching/daily_tasks/' + id,
    method: 'delete'
  })
}
